package com.inibb.app.vo.security;

import java.util.Collection;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Locale;

import com.inibb.app.constant.SecurityErrorCode;



public class UserVO implements java.io.Serializable{

	private static final long serialVersionUID = 1L;

	private Integer id;

	private String loginName;

//	private String groupId;

	private String password;
	
	private String confirmPassword;
	
	private String name;

	private Date regDate;
	
	private Date effectiveFrom;
	
	private Date effectiveTo;
	
	private Locale locale;


	private String email;

	private String roleNames;
	
	private String[] roleIds;
	
	private String activeFlag;
	
	private Collection<RoleDTO> roles = new LinkedHashSet<RoleDTO>();

	
	public String[] getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String[] roleIds) {
		this.roleIds = roleIds;
	}


	public Date getRegDate() {
		return regDate;
	}

	public void setRegDate(Date regDate) {
		this.regDate = regDate;
	}

	//@FDate(message = SecurityErrorCode.E_INVALID_EFFECTIVE_FROM)
	public Date getEffectiveFrom() {
		return effectiveFrom;
	}

	public void setEffectiveFrom(Date effectiveFrom) {
		this.effectiveFrom = effectiveFrom;
	}

	//@FDate(message = SecurityErrorCode.E_INVALID_EFFECTIVE_TO)
	public Date getEffectiveTo() {
		return effectiveTo;
	}

	public void setEffectiveTo(Date effectiveTo) {
		this.effectiveTo = effectiveTo;
	}

	public Locale getLocale() {
		return locale;
	}

	public void setLocale(Locale locale) {
		this.locale = locale;
	}
	

	public String getActiveFlag() {
		return activeFlag;
	}

	public void setActiveFlag(String activeFlag) {
		this.activeFlag = activeFlag;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Collection<RoleDTO> getRoles() {
		return roles;
	}

	public void setRoles(Collection<RoleDTO> roles) {
		this.roles = roles;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	/*@NotEmpty(message=SecurityErrorCode.E_EMPTY_GROUP)
	public String getGroupId() {
		return groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}*/

	
	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

}
